import { ref, watchEffect } from 'vue'
import { useMainIndexStore } from '@/stores/mainIndexStore'
import { useSearchInputStroe } from '@/stores/searchInputStore'
import { useCurrActStroe } from '@/stores/currActStore'
import { storeToRefs } from 'pinia'
import { useSocketStore } from '@/stores/socketStore'
export default function () {
  const { socket, titleItems } = storeToRefs(useSocketStore())
  // 这个titel
  // 切换内容头部信息
  const title = ref('百味阁')
  //   筛选控制
  const { showSelector } = useMainIndexStore()

  // 搜索框
  const { input } = storeToRefs(useSearchInputStroe())
  const { searchKeyWords } = useSearchInputStroe()

  const { currUser } = storeToRefs(useCurrActStroe())

  watchEffect(() => {})
  return {
    input,
    title,
    currUser,
    titleItems,
    showSelector,
    searchKeyWords
  }
}
